package algorithm;

import interfaces.Info;
import board.Board;

public class testyAdam {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		AlgorithmEasy alg = new AlgorithmEasy();
		
		System.out.println("Start");
		Board inicjalizeBoard = new Board(4, 4);
		inicjalizeBoard.mix();
		Info info = alg.solve(inicjalizeBoard);
		System.out.println("KONIEC");
		System.out.println("Czas " + info.getSolvingTime());
		if(info.isSolutionFound()){
			System.out.println("Się rozwiązało ziomuś :-D");
			System.out.println(info.getSteps().toString());
		}else {
			System.out.println("No i DUPA!!!");
			System.out.println(info.getSteps().toString());
		}
		inicjalizeBoard.wyswietl();
		
		inicjalizeBoard.move(info.getSteps().getFirst()).wyswietl();
		System.out.println(inicjalizeBoard.getHeight());
		
	}

}
